/**
 * This class is used to simulate the data cache also known as the data disk buffer.
 * Everytime a read is done, the item is checked for on the cache, if it is not present
 * it is copied from the data disk on to this cache. If any modifications are made to the value 
 * i.e. in case of any write operation the dirty bit is set to one to indicate, the item is to be synchronised 
 * with the disk. 
 */
package edu.cse5311.entity;

/**
 * @author Karthik MG/ Shwetha Narayan
 *
 */
public class DataBuffer {
	int itemValue;
	int transactionId;
	boolean dirtyBit;
	
	/**
	 * @return the itemValue
	 */
	public int getItemValue() {
		return itemValue;
	}
	/**
	 * @param itemValue the itemValue to set
	 */
	public void setItemValue(int itemValue) {
		this.itemValue = itemValue;
	}
	
	/**
	 * @return the transactionId
	 */
	public int getTransactionId() {
		return transactionId;
	}
	/**
	 * @param transactionId the transactionId to set
	 */
	public void setTransactionId(int transactionId) {
		this.transactionId = transactionId;
	}
	/**
	 * @return the dirtyBit
	 */
	public boolean isDirtyBit() {
		return dirtyBit;
	}
	/**
	 * @param dirtyBit the dirtyBit to set
	 */
	public void setDirtyBit(boolean dirtyBit) {
		this.dirtyBit = dirtyBit;
	}
	
}
